package cn.admin.common.enumeration;

import lombok.Data;

/**
 * @author YJ
 * @DateTime 2023/2/21 13:56
 */
public enum ResponseEnum {

    success(200, "正确响应"),
    error(500, "服务器内部错误");

    /**
     * 响应码
     */
    private int code;

    /**
     * 响应信息
     */
    private String message;

    private ResponseEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
